import 'package:json_annotation/json_annotation.dart';

part 'scenic_spot.g.dart';

@JsonSerializable()
class ScenicSpotModel {
  String name;

  String imgUrl;

  int hot;

  ScenicSpotModel({required this.name, required this.imgUrl, required this.hot});

  factory ScenicSpotModel.fromJson(Map<String, dynamic> json) => _$ScenicSpotModelFromJson(json);

  Map<String, dynamic> toJson() => _$ScenicSpotModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}
